package com.student.xujiang.myallstudent.glide;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.RelativeLayout;

import com.student.xujiang.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class GlideRecyclerViewActivity extends AppCompatActivity {

    @BindView(R.id.rv_glide)
    RecyclerView rvGlide;
    @BindView(R.id.activity_glide_recycler_view)
    RelativeLayout activityGlideRecyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_recycler_view);
        ButterKnife.bind(this);

        initData();
    }

    private void initData() {
        GlideRecyclerviewAdapter glideRecyclerViewActivity = new GlideRecyclerviewAdapter(this);
        rvGlide.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.VERTICAL,false));
        rvGlide.setAdapter(glideRecyclerViewActivity);

    }
}
